﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using System.Threading.Tasks;

namespace dotNetTraining.Service
{
    
    public interface IProduct
    {
        [OperationContract]
        List<Product> LProducts();
        [OperationContract]
        int PriceToDay();
    }

    [DataContract]
    public class Product
    {
        [DataMember]
        public int Id { get; set; }

        [DataMember]
        public String Name { get; set; }

        [DataMember]
        public Double Price { get; set; }

        [DataMember]
        public string Description { get; set; }

    }
}
